package com.smedi.ismedi.organization.api.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@ApiModel(description = "行政组织信息入参")
public class HrOrganizationRequest implements Serializable {
    @ApiModelProperty(value = "组织id")
    private Long hrOrganizationId;

    @NotNull(message = "组织全称为空！")
    @ApiModelProperty(value = "组织全称")
    private String fullName;

    @ApiModelProperty(value = "组织简称")
    private String shortName;

    @ApiModelProperty(value = "组织编码")
    private String organizationCode;

    @NotNull(message = "组织类型为空！")
    @ApiModelProperty(value = "组织类型")
    private String type;

    @ApiModelProperty(value = "排序")
    private Integer displayOrder;

    @ApiModelProperty(value = "父节点组织id")
    private Long parentId;
}
